package com.tyl.service.impl;

import com.tyl.mapper.EmployeeMapper;
import com.tyl.pojo.Employee;
import com.tyl.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    @Override
    public List<Employee> queryAllEmployeeList() {
        return employeeMapper.queryAllEmployeeList();
    }

    @Override
    public Employee queryEmployeeListById(int Id) {
        return employeeMapper.queryEmployeeListById(Id);
    }

    @Override
    public int addEmployee( Employee employee) {
        return employeeMapper.addEmployee(employee);
    }

    @Override
    public int deleteEmployee(int Id) {
        return employeeMapper.deleteEmployee(Id);
    }

    @Override
    public int updateEmployee(Employee employee) {
        return employeeMapper.updateEmployee(employee);
    }
}
